package my.db.DTO;

import java.util.*;
public class AuthorDTO {
	private int authorID;
	private int authorGender;
	private String authorName,authorMail,authorPhone;
	private int authorStatus;
	private Date authorDate;
	public AuthorDTO(){
		this.authorID = 0;
		this.authorGender = 0;
		this.authorName = "";
		this.authorMail = "";
		this.authorPhone = "";
		this.authorDate=null;
		this.authorStatus = 0;
	}
	/**
	 * @param authorID
	 * @param authorGender
	 * @param authorName
	 * @param authorMail
	 * @param authorPhone
	 * @param authorStatus
	 */
	public AuthorDTO(int authorID, int authorGender, String authorName,
			String authorMail, String authorPhone, int authorStatus,java.util.Date date) {
		this.authorID = authorID;
		this.authorGender = authorGender;
		this.authorName = authorName;
		this.authorMail = authorMail;
		this.authorPhone = authorPhone;
		this.authorStatus = authorStatus;
		this.authorDate=date;
	}
	
	public AuthorDTO(int authorGender, String authorName,
			String authorMail, String authorPhone, int authorStatus,java.util.Date date) {
		this.authorID = authorID;
		this.authorGender = authorGender;
		this.authorName = authorName;
		this.authorMail = authorMail;
		this.authorPhone = authorPhone;
		this.authorStatus = authorStatus;
		this.authorDate=date;
	}
	/**
	 * @return the authorID
	 */
	public int getAuthorID() {
		return authorID;
	}
	/**
	 * @param authorID the authorID to set
	 */
	public void setAuthorID(int authorID) {
		this.authorID = authorID;
	}

	public Date getAuthorDate() {
		return authorDate;
	}
	public void setAuthorDate(Date authorDate) {
		this.authorDate = authorDate;
	}
	/**
	 * @return the authorName
	 */
	public String getAuthorName() {
		return authorName;
	}

	/**
	 * @param authorName the authorName to set
	 */
	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	/**
	 * @return the authorGender
	 */
	public int getAuthorGender() {
		return authorGender;
	}

	/**
	 * @param gender the authorGender to set
	 */
	public void setAuthorGender(int gender) {
		this.authorGender = gender;
	}

	/**
	 * @return the authorMail
	 */
	public String getAuthorMail() {
		return authorMail;
	}

	/**
	 * @param authorMail the authorMail to set
	 */
	public void setAuthorMail(String authorMail) {
		this.authorMail = authorMail;
	}

	/**
	 * @return the authorPhone
	 */
	public String getAuthorPhone() {
		return authorPhone;
	}

	/**
	 * @param authorPhone the authorPhone to set
	 */
	public void setAuthorPhone(String authorPhone) {
		this.authorPhone = authorPhone;
	}

	/**
	 * @return the authorStatus
	 */
	public int getAuthorStatus() {
		return authorStatus;
	}

	/**
	 * @param i the authorStatus to set
	 */
	public void setAuthorStatus(int i) {
		this.authorStatus = i;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "AuthorDTO [authorID=" + authorID + ", authorName=" + authorName
				+ ", authorGender=" + authorGender + ", authorMail="
				+ authorMail + ", authorPhone=" + authorPhone
				+ ", authorStatus=" + authorStatus + "]";
	}
	
}
